﻿using System.Drawing;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace SharpErp.UI.Common
{
    public class ToastNotificationUtil
    {
        public static void ShowErrorToast(Control parent, string message)
        {
            ToastNotification.ToastBackColor = Color.Red;
            ToastNotification.ToastForeColor = Color.Gray;
            ToastNotification.Show(parent, message, null, 3000, eToastGlowColor.Blue, eToastPosition.MiddleCenter);
        }

        public static void ShowSuccessToast(Control parent, string message)
        {
            ToastNotification.ToastBackColor = Color.Aquamarine;
            ToastNotification.ToastForeColor = Color.Black;
            ToastNotification.Show(parent, message, null, 3000, eToastGlowColor.Blue, eToastPosition.MiddleCenter);
        }
    }
}
